package person;

import java.util.*;

public class Tester {
	public static void main(String[] args){
		Person pTom = new Person(3,"Tom","888-888");
		Person pAdi = new Person(2,"Adi","123-456");
		Person pRudi = new Person(1,"Rudi","321-543");

		List people = new ArrayList();
		people.add(pTom);
		people.add(pAdi);
		people.add(pRudi);
		//System.out.println(people.indexOf(pRudi));
		System.out.println("bfore sort: " + people);
		
		Collections.sort(people); // ?ART / 018
		
		System.out.println("after sort: " + people);
	}
}
